<?php

namespace App\Transformers;


use App\Models\SmsSetting;
use League\Fractal\TransformerAbstract;

class SmsSettingTransformer extends TransformerAbstract
{

    public function transform(SmsSetting $smsSetting)
    {
        return [
            'id' => $smsSetting->id,
            'type' => $smsSetting->type,
            'value' => $smsSetting->value,
            'status' => $smsSetting->status,
            'alias' => $smsSetting->alias,
            'created_at' =>$smsSetting->created_at->toDateTimeString(),
            'updated_at' => $smsSetting->updated_at->toDateTimeString(),
        ];
    }
}